﻿<!--
    Copyright 2007-2010 Jeff Hardy

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<!--

    NWSGI configuration schema.
    
    Please do not edit this file. To add configuration sections to the schema,
    put them in .xml files similar to this one, in this directory. They will
    be picked up automatically at application pool startup.

-->
<configSchema>
    <sectionSchema name="wsgi">
        <attribute name="enableExtensions" type="bool" defaultValue="false" />
        <attribute name="compilation" type="enum" defaultValue="Adaptive">
            <enum name="Adaptive" value="0" />
            <enum name="Compiled" value="1" />
        </attribute>
        <attribute name="frames" type="enum" defaultValue="Off">
            <enum name="Off" value="0" />
            <enum name="On" value="1" />
            <enum name="Full" value="2" />
        </attribute>

        <attribute name="tracing" type="bool" defaultValue="false" />
        <attribute name="lightweightScopes" type="bool" defaultValue="false" />
        <attribute name="enableProfiler" type="bool" defaultValue="false" />

        <element name="wildcard">
            <attribute name="physicalPath" type="string" />
            <attribute name="callable" type="string" />
        </element>
        
        <element name="pythonPaths">
            <collection addElement="path">
                <attribute name="path" type="string" />
            </collection>
        </element>

        <element name="wsgiEnviron">
            <collection addElement="variable">
                <attribute name="name" isUniqueKey="true" type="string" />
                <attribute name="value" type="string" />
            </collection>
        </element>

        <element name="scriptMappings">
            <collection addElement="scriptMapping">
                <attribute name="scriptName" isUniqueKey="true" type="string" />
                <attribute name="physicalPath" type="string" />
                <attribute name="callable" type="string" />
            </collection>
        </element>
    </sectionSchema>
</configSchema>
